﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaffeeBuzz_WinForm.Cafe
{
    public abstract class Condiment : Item
    {
        private Item beverage;
     
        public Item Condiment_Beverage
        {
            get { return beverage; }
            set { beverage = value; }
        }

        public Condiment(Condiment c)
        {
            this.name = c.Name;
            this.price = c.Price;
            this.Condiment_Beverage = c.Condiment_Beverage.Clone();
        }
        public Condiment()
        {
        }
        public double plus()
        {
            return price;
        }
        public override double Price
        {
            get
            {
                return this.Condiment_Beverage.Price + price;
            }
        }
        public override string Description
        {
            get
            {
                return this.Condiment_Beverage.Description + " " + name;
            }
        }
        
    }
}
